import React, {useState} from 'react';

export default function App() {

    const [name,setName]=useState('111')
    const [age,setAge]=useState(100)
    console.log(name)
    return (
        <div>
            <button onClick={()=>{
                setName('2222')
                setAge(18)
            }}>click</button>
            app-{name}-{age}
        </div>
    );
};


